#ifndef TABLEWRITER_H
#define TABLEWRITER_H

#include <QRunnable>
#include <QCoreApplication>

class TableData;
class TableWriterPrivate;
class TableWriter : public QRunnable
{
public:
    explicit TableWriter();
    ~TableWriter();

    void setFileName(const QString& file);
    QString fileName() const;

    void addTableData(TableData* td);

protected:
    void run();

private:
    Q_DISABLE_COPY(TableWriter)
    TableWriterPrivate* d_ptr;
};

#endif
